package com.jae.service.impl;


import com.jae.model.ServiceRuntimeException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

@Transactional(rollbackFor = Exception.class)//第一种方式
public class BaseServiceImpl {
    protected Log log = LogFactory.getLog(this.getClass());
    public void serviceError(String msg){
        throw new ServiceRuntimeException(msg);
    }
}
